<ion-header>
    <ion-navbar>
        <ion-title>
            {{title}}
        </ion-title>
    </ion-navbar>
</ion-header>
<ion-content>
    <ion-segment *ngIf="isNotice" [(ngModel)]="isRead" color="primary">
        <ion-segment-button value="0" (ionSelect)="selected()">
            待办
        </ion-segment-button>
        <ion-segment-button value="1" (ionSelect)="selected()">
            已办
        </ion-segment-button>
    </ion-segment>
    <!-- <ion-refresher (ionRefresh)="doRefresh($event)">
        <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="加载中" refreshingSpinner="circles"
            refreshingText="加载中...">
        </ion-refresher-content>
    </ion-refresher> -->
    <div >
    <ion-list>
        <ion-item *ngFor="let l of list" (click)="detail(l)">
            <ion-thumbnail item-start *ngIf="l['imgUrl']" style="position: relative;">
                <img src="{{l['imgUrl']}}">
                <b *ngIf="l['isRead'] == '0'" style="color:red;font-size: 40px;position: absolute;top: -20px;left: 50px;">·</b>
            </ion-thumbnail>
            <h2 *ngIf="l['imgUrl']" >{{l.title}}</h2>
            <p *ngIf="l['imgUrl']">{{l.createTime||l.noticeTime | timeTrans}}</p>
            <button ion-button clear item-end *ngIf="l['imgUrl']">
                <img src="assets/icon/home_enter.png">
            </button>
            <h2 *ngIf="!l['imgUrl']" class="listtitle">{{l.title}}</h2>
            <p *ngIf="!l['imgUrl']">{{l.createTime||l.noticeTime | timeTrans}}</p>
        </ion-item>
    </ion-list>
    <ion-infinite-scroll  (ionInfinite)="doRefresh($event)" threshold="20px" >
        <ion-infinite-scroll-content
          loadingSpinner="bubbles"
          loadingText="加载更多">
        </ion-infinite-scroll-content>
      </ion-infinite-scroll>
       <!-- <div style="margin: 0 auto;" *ngIf="isShowNoData">已经到底了</div> -->
       <div [hidden]="!isShowNoData"   style="color:#8d8d97">
            <ion-row>
                <ion-col text-center>
                  ———————— 我是有底线的 ————————
                </ion-col>
            </ion-row>
        </div>
    </div>
</ion-content>